home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13259 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ccshst05.cs.uoguelph.ca!ccshst01!thay
  2. From: thay@uoguelph.ca (Toby K Hay)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Error msg: Trace/BPT trap
  5. Date: 5 Apr 1996 17:20:12 GMT
  6. Organization: University of Guelph
  7. Message-ID: <4k3koc$cg0@ccshst05.cs.uoguelph.ca>
  8. References: <4k1gdl$32r@ccshst05.cs.uoguelph.ca>
  9. NNTP-Posting-Host: ccshst01.cs.uoguelph.ca
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Toby K Hay (thay@uoguelph.ca) wrote:
  13. : I had my ANSI C program running nicely on a UNIX SGI machine and 
  14. : foolishly made a few changes to the code.  Now it's occasionally halting 
  15. : with the error message 'Trace/BPT trap (core dumped)'.  Can anyone tell 
  16. : me what causes the UNIX to report this error so that I know where to 
  17. : start looking for my bugs?  Thanks in advance . . .
  18.  
  19. Toby Hay replies with a red face:
  20.  My rudimentary knowledge of UNIX is increasing by leaps and bounds, and 
  21. since posting this question yesterday I've learned to trace program 
  22. execution with the debugger 'dbx' and find elementary errors like 
  23. division by 0 which causes the 'Trace/BPT trap' message I've been getting.  
  24.  Please ignore the question now . . .
  25.  
  26. Toby Hay, still embarrassed, signs off . . .         thay@uoguelph.ca
  27.  
  28.